/**
 * Copyright (c) Software Institude of PKU
 * All rights reserved. 
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 */
package edu.pku.sei.modeler.model.uml.Kernel;
// imports:
import org.w3c.dom.Element;

import edu.pku.sei.gefcommon.descriptor.annotation.MethodProperty;
import edu.pku.sei.modeler.model.xml.XMLUtility;
import edu.pku.sei.modeler.uml.modelHelper.ModelPackage;



/**
 * @generated
 * modified by zsj
 *
 */
public class Feature extends RedefinableElement implements IFeature {
	// attributes
	
	protected boolean isStatic;
	
	
	
	
	// references
	
	
	
	// getters & setters for attributes
	
	@MethodProperty(
			id = "FEATURE_ISSTATIC",
			catalog = "General",
			name = ModelPackage.FEATURE_ISSTATIC,
			setter = "setIsStatic"
			)
	
	public boolean getIsStatic() {
		return isStatic;
	}
	public void setIsStatic(boolean newIsStatic) {
		boolean oldisStatic = isStatic;
		isStatic = newIsStatic;
		firePropertyChange(ModelPackage.FEATURE_ISSTATIC, oldisStatic, newIsStatic);
	}
	
	// getters for references
	
	// save & load
	public void serialize(Element root) {
		super.serialize(root);
		// attributes
		
		XMLUtility.xmlInstance.serializeAttribute(root, ModelPackage.FEATURE_ISSTATIC, isStatic);
		
		// references
		
	}
	
	public void deSerialize(Element root) {
		super.deSerialize(root);
		// attributes
		
		isStatic = XMLUtility.xmlInstance.deSerializeBoolean(root, ModelPackage.FEATURE_ISSTATIC);
		
		// references
		
	}
	
	public void dynamicSet(String featureID, Object value) {
		if(featureID == null || "".equals(featureID)) {
			return;
		}
		// attributes
		
		// references
		
		else
			super.dynamicSet(featureID, value);
	}
}
 
 
 
 
 